<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>给定位对象指定一个方位数值</title>
<style type="text/css">
<!--
body {
	margin: 0px;
	font-size: 9pt;
	margin-top: 150px;
	margin-left: 150px;
}

.box1 {
	background-color: #33CCFF;
	height: 200px;
	width: 200px;
}

.box2 {
	background-color: #66CC66;
	height: 100px;
	width: 100px;
	position: absolute;
	top: 0px; /*如果没有指定一个方位定位属性和值,绝对定位不起作用,你可以删除这一项看一下效果*/
}
-->
</style>
</head>

<body>
	<div class="box1">
		<div class="box2"></div>
	</div>
</body>
</html>





